package com.sgb.businessmodule.view.ui.adapter;

import android.content.Context;

import com.sgb.businessmodule.R;
import com.sgb.businessmodule.databinding.ItemKeywordSearchBinding;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class KeyWordSearchAdapter extends BaseRecycleAdapter<String> {

    public KeyWordSearchAdapter(Context context, List<String> data) {
        super(context, R.layout.item_keyword_search, data);
    }

    @Override
    public void convert(ItemViewHolder holder, String s) {
        ItemKeywordSearchBinding mBinding = (ItemKeywordSearchBinding) holder.getmBinding();
        mBinding.tvItemKeyword.setText(s);
    }
}
